import { App } from 'vue';
// 使用注册器替换默认控件的组件(有些只重写了适配器覆盖原控制器没有重写UI)
import { IBizGridFieldColumn } from './grid-field-column';
import { IBizAttachmentViewerColumn } from './attachment-viewer-column';
import { IBizGridFieldEditColumn } from './grid-field-edit-column';
// 基础组件
import { IBizGridColumnHeader } from './grid-column-header/grid-column-header';
import { IBizGridPagination } from './grid-pagination/grid-pagination';


export default {
  install(app: App): void {
    app.use(IBizGridFieldColumn);
    app.use(IBizGridFieldEditColumn);
    app.use(IBizAttachmentViewerColumn);
    app.component(IBizGridColumnHeader.name!, IBizGridColumnHeader);
    app.component(IBizGridPagination.name!, IBizGridPagination);
  },
};
